<template>
  <div>
    <van-button type="danger" @click='out'>退出登录</van-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      
    }
  },
  methods: {
    out(){
      this.$store.commit('out')
      this.$router.push('/login')
    }
  },
  mounted() {
    
  },
}
</script>

<style>

</style>